const express = require('express')
const { register, login } = require('../controller/user')
const { registerValidate, loginValidate } = require('../validator/user')
const router = express.Router()

//登录
router.post('/login', loginValidate, login)

//注册
router.post('/register', registerValidate, register)

module.exports = router
